#include<iostream>
#include<unistd.h>
#include <sys/types.h>
#include <sys/wait.h>

using namespace std;


extern char** environ;

int main()
{
    putenv((char*)"zgw=1000");
    pid_t id=fork();
    if(id==0)
    {
        char*const arge[]={(char*)"zgw1=1",(char*)"zgw2=2"};
        char*argv[]={(char*)"test ",nullptr};
        execvpe("./test",argv,environ);
    }
    else 
    {
        int status=0;
        pid_t cpid=waitpid(id,&status,0);
    }


    return 0;
}


